<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>Hi</h1>
<table cellspacing='0' cellpadding='0' border='0' width = '100%'>
<tr>
	<td>Name</td>
	<td>Email</td>
	<td>Action</td>
</tr>
<?php 
foreach($this->paginator as $contact) {
	echo '<tr>';
	echo '<td>'.$contact->alias.'</td>';
	echo '<td>'.$contact->email.'</td>';
	echo '<td><a href="'.$this->url(array('controller'=>'contact', 'action'=>'delete', 'id'=>$contact->id)).'">Delete</a> | <a href="'.$this->url(array('controller'=>'contact', 'action'=>'edit', 'id'=>$contact->id)).'">Edit</a></td>';
}
?>
<tr>
	<td colspan='3'>
		<?= $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
	</td>
</tr>
</table>
</body>
</html>